Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dynamic campaign promotions #202

Merged
merged 3 commits into from
Sep 19, 2024
Merged

feat: dynamic campaign promotions #202

merged 3 commits into from
Sep 19, 2024

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Sep 18, 2024

What this PR changes

  • Removes hard-coded values from CampaignPromo
  • Finds the most recent promoted campaign that did not end yet and shows CampaignPromo with its values

Other changes

  • Code cleanup: Removes SEP5 related components and hooks as the SEP5 deadline is reached

@schmanu schmanu requested a review from usame-algan September 18, 2024 10:34
Copy link

github-actions bot commented Sep 18, 2024

Branch preview

⏳ Deploying a preview site...

Comment on lines 118 to 120
color: '#2470FF',
'&:hover': {
backgroundColor: ({ palette }) => `rgba(36, 112, 255, ${palette.action.hoverOpacity})`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This blue color still belongs to one specific campaign or is it the same for every campaign?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its the same on every campaign. There is no configurable color atm. So we could change it but only to a constant other color.
cc @TanyaEfremova

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed all colors and styles according to the new designs:
Screenshot 2024-09-19 at 16 43 07

@@ -45,7 +50,7 @@ export const CampaignPromo = () => {
<LinearProgress
className={css.progressBar}
variant="determinate"
value={progress}
value={progress * 100}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did something change about the progress value so that we have to multiply it now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was wrong before but noone realized it. It has to be between 0 and 100 and not 0 and 1

@schmanu schmanu merged commit 8d175c8 into dev Sep 19, 2024
2 of 4 checks passed
@schmanu schmanu deleted the feat/dynamic-campaign-promo branch September 19, 2024 14:45
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants